package own.application.test.dao.impl;

import javax.annotation.Resource;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.stereotype.Repository;

import own.application.test.dao.ContextDao;

@Repository
public class ContextDaoImpl implements ContextDao {

	@Resource
	private SqlSessionTemplate sqlSession;
	
	@Override
	public Integer insertMapper(String namespace,String statementId,Object parameter) {
		int count = sqlSession.insert(namespace+"."+statementId,parameter);
		return count;
	}

	@Override
	public Integer insertMapper(String namespace, String statementId) {
		// TODO Auto-generated method stub
		int count = sqlSession.insert(namespace+"."+statementId);
		return count;
	}

}
